import React, { useEffect, useState } from 'react'
import { Button } from 'antd'
import NewsPublish from '../../../components/news-manage/publish-manage/NewsPublish'
import usePublish from '../../../components/news-manage/publish-manage/usePublish'
function Published() {
    const { dataSource, handelDelete } = usePublish(3)
    return (
        <div>
            <NewsPublish dataSource={dataSource}
                button={(id) => <Button onClick={() => handelDelete(id)} danger>删除</Button>}></NewsPublish>
        </div>
    )
}

export default Published
